package pers.cl.dubbo.mvc.annotation;

import org.springframework.core.annotation.AliasFor;
import pers.cl.dubbo.mvc.enums.RequestMethod;

import java.lang.annotation.*;

/**
 * @author chenlei
 * @date 2020/1/14
 * @description
 **/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestMapping {

    String name() default "";

    @AliasFor(value = "path")
    String value() default "";
    @AliasFor(value = "value")
    String path() default "";

    RequestMethod[] method() default {};
}
